package ModelLayer;
import java.util.*;

/**
 * Write a description of class Loan here.
 * 
 * @author (Group2) 
 * @version (14)
 */
public class Loan
{
    //start of instance variables;
    String id;
    String borrowDate;
    String period;
    String personID;
    String copyID;
    //end of instance variables;
    public Loan(String id, String borrowDate, String period, String personID, String copyID)  //constructor of class Loan
    {
        this.id=id;
        this.borrowDate=borrowDate;
        this.period=period;
        this.personID=personID;
        this.copyID=copyID;
    }
    
    public void createLoan(String id, String borrowDate, String period, String personID, String copyID)     //create a new object: Loan
    {
        this.id=id;
        this.borrowDate=borrowDate;
        this.period=period;
        this.personID=personID;
        this.copyID=copyID;
    }
    //start of set/mutator methods;
    public void setBorrowDate(String borrowDate)
    {
        this.borrowDate=borrowDate;
    }
    
    public void setPeriod(String period)
    {
        this.period=period;
    }
    
    public void setPersonID(String personID)
    {
        this.personID=personID;
    }
    
    public void setCopyID(String copyID)
    {
        this.copyID=copyID;
    }
    //end of set/mutator methods;
    
    //start of get/accessor methods;
    public void getID()
    {
        System.out.println("ID : " + id);
    }
    
    public void getBorrowDate()
    {
        System.out.println("Borrow Date : " + borrowDate);
    }
    
    public void getPeriod()
    {
        System.out.println("Period : " + period);
    }
    
    public void getPersonID()
    {
        System.out.println("Person ID: " + personID);
    }
    
    public void getCopyID()
    {
        System.out.println("Copy ID: " + copyID);
    }
    //end of get/accessor methods;
    public void print()         //prints our the information/datas of the Loan;
    {
        getID();
        getBorrowDate();
        getPeriod();
        getPersonID();
        getCopyID();
        
    }
}
